﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Pager.ascx.cs" Inherits="common_Pager" %>
<table width="96%" border="0" cellpadding="0" cellspacing="0" align="center">
    <tr>
        <td width="36%" height="30">
            页次：<b><%=CurPage%></b>/<b><%=TotalPage%></b>页 每页<b><%=PageSize%></b>条 共<b><%=RecordCount%></b>条
        </td>
        <td width="64%" height="30" style="text-align: right;">
            分页：
            <% if (CurPage == 1)
               { %>
            <font face=webdings>9</font>
            <% } else { %>
            <a href="<%= URL+ "&curpage=1" + QueryString %>"><font face=webdings>9</font></a>
            <% } %>
            <% 
                for (int i=1;i<=TotalPage;i++)
                    if (i == CurPage)  {
            %>
                        <b><font color="#FF0000"><%= i%></font></b>
            <%    }   else
                { %>
                        <a href='<%= URL+ "&curpage="+ i.ToString() + QueryString %>'><font color="#FF0000"><%= i%></font></a>
            <% } %>
            <% if (CurPage == TotalPage)
               { %>
            <font face=webdings>:</font>  
            <% } else { %> 
            <a href="<%= URL+ "&curpage=" + TotalPage + QueryString %>"><font face=webdings>:</font></a>
            <% } %>
            转到：
            <asp:DropDownList ID="PageList" runat="server">
            </asp:DropDownList>
        </td>
    </tr>
</table>